<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="include.jsp" %>


<html>
<head>
	<script type="text/javascript"> 
		function fnViewArticle(e, strBbsId, strAticleNo) {
			
			if (e.preventDefault) {
				e.preventDefault();
			} else {
				e.returnValue = false;
			}
			
			location.href = '/board/view/BBS_ID/' + strBbsId + '/ATC_NO/' + strAticleNo;
		}
	</script>
</head>
<body>


	<table width="100%" cellspacing="0"  cellpadding="0" border="0">
		<tr>
			<td valign="top">
			
				<br>
				<br>
				
				<!-- 공지사항 미리보기  -->
				<h3>공지사항</h3>
				
				<div class="tbl_type1">  
				    <table cellspacing="0" summary="표에 관한 요약 정보">  
				   	<col width="80">
			    	<col>  
			    	<col width="80">
			    
					<c:if test="${!empty objPreviewNoticeList}">
				    <tbody>  
				    	<div id="id_div_result">
				    	<c:forEach items="${objPreviewNoticeList}" var="objArticle" varStatus="i">
					    <tr> 						    				    						    
						    <!-- 작성일 -->
						    <td style="text-align:left;"><fmt:formatDate value="${objArticle.regYmdt}" pattern="yyyy-MM-dd" /></td>  
						    
						    <!-- 제목 -->
						    <td style="text-align:left;">
						    	<a href="#" onClick="fnViewArticle(event, '${objArticle.bbsId}', '${objArticle.atcNo}')" class="none_color">${objArticle.ttl}</a>
						    </td>
						    						    
						    <!-- 작성자 -->
						    <td style="text-align:left;"><html:emp empNo="${objArticle.regrEmpNo}" type="empNm" /></td>
					    </tr>  		
				    	</c:forEach>
				     	</div>	 
				    </tbody>  
				    </c:if>
				
				    </table>  
				</div> 
				
				
				<br>
				<br>
				<br>
				<br>
				
				
				<!-- 최근 게시물 미리보기  -->
				<h3>최근 게시물</h3>
				
				<div class="tbl_type1">  
				    <table cellspacing="0" summary="표에 관한 요약 정보">  
				   	<col width="80">
				   	<col width="100">
			    	<col>  
			    	<col width="80">
			    
					<c:if test="${!empty objPreviewRecentList}">
				    <tbody>  
				    	<div id="id_div_result">
				    	<c:forEach items="${objPreviewRecentList}" var="objArticle" varStatus="i">
					    <tr> 
						    <!-- 작성일 -->
						    <td style="text-align:left;"><fmt:formatDate value="${objArticle.regYmdt}" pattern="yyyy-MM-dd" /></td>  
						    
						    <!-- 게시판명 -->
						    <td style="text-align:left;"><html:bbs bbsId="${objArticle.bbsId}" type="bbsId" /></td>
						    						    
						    <!-- 제목 -->
						    <td style="text-align:left;">
						    	<a href="#" onClick="fnViewArticle(event, '${objArticle.bbsId}', '${objArticle.atcNo}')" class="none_color">${objArticle.ttl}</a>
						    </td>

						    <!-- 작성자 -->
						    <td style="text-align:left;"><html:emp empNo="${objArticle.regrEmpNo}" type="empNm" /></td>
					    </tr>  		
				    	</c:forEach>
				     	</div>	 
				    </tbody>  
				    </c:if>
				
				    </table>  
				</div> 
				
				
				
			</td>
			<td width="50">
				&nbsp;
			</td>
			<td width="185"  valign="top">
				<!-- 배너 영역 -->
				<%@ include file="../decorators/page/banner.jsp" %>
			</td>
		</tr>
	</table>


	<br>
	<br>
	<br>
	<br>


</body>
</html>